package com.oocl.venus.utils;

import org.apache.commons.configuration.Configuration;
import org.apache.commons.configuration.ConfigurationException;
import org.apache.commons.configuration.PropertiesConfiguration;

public class WebConfig {
	private static final String beanPath = "web.properties";
	private static Configuration config;

	static {
		try {
			config = new PropertiesConfiguration(beanPath);
		} catch (ConfigurationException e) {
			System.out.println(("Cannot find the beanFactory properties."));
			e.printStackTrace();
		}
	}

	public static String getAction(String key) {
		return config.getString(key);
	}

}
